package com.pig4cloud.pigx.contract.api.v1.websocket.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.pig4cloud.pigx.common.customize.utils.serializer.BigDecimalToPlainStringSerializer;
import com.pig4cloud.pigx.contract.annotation.SetScaleMainCurrency;
import com.pig4cloud.pigx.contract.annotation.SetScaleTokenCurrency;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 */
@Data
public class OpenApi24hTickerVOV1 implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 币对名称
     */
    private String symbolName;

    /**
     * 24h 成交额
     */
    @JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
    @SetScaleMainCurrency
    private BigDecimal sumPrice;

    /**
     * 24h 最高价
     */
    @JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
    @SetScaleMainCurrency
    private BigDecimal maxPrice;

    /**
     * 24h 最低价
     */
    @JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
    @SetScaleMainCurrency
    private BigDecimal minPrice;

    /**
     * 24h 成交量
     */
    @JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
    @SetScaleTokenCurrency
    private BigDecimal sumNum;
}
